package com.situ.crm.observer;

public class Reader implements Observer{
    private String name;

    public Reader(String name) {
        this.name = name;
    }

    //读者关心的报纸
    private String content;

    @Override
    public void update(Subject subject) {
        this.content = ((NewsPaper)subject).getContent();
        System.out.println(name + "收到了今天报纸，内容是： " + content);
    }
}
